//
//  SEGUhomeMediator+SEGPropertyBase.m
//  SEGBasicBussiness
//
//  Created by JokerHe on 2018/3/29.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import "SEGUhomeMediator+SEGPropertyBase.h"

NSString * const kTargetVisitor = @"Visitor";
NSString * const kActionVisitorAccessViewController = @"initVisitorAccessViewController";

NSString * const kTargetMonthCard = @"MonthCard";
NSString * const kActionMonthCardCheckViewController = @"initMonthCardCheckViewController";

NSString * const kTargetNewCommunity = @"NewCommunity";
NSString * const kActionExcellentWorkersViewController = @"initExcellentWorkersViewController";
NSString * const kActionUhomeListViewController = @"initUhomeListViewController";

NSString * const kTargetNews = @"News";
NSString * const kActionNewsListRootViewController = @"initNewsListRootViewController";

NSString * const kTargetExpress = @"Express";
NSString * const kActionExpressCollectionListViewController = @"initExpressCollectionListViewController";
NSString * const kActionExpressCollectionDetailViewController = @"initExpressCollectionDetailViewController";

NSString * const kTargetBill = @"Bill";
NSString * const kActionBillListViewController = @"initBillListViewController";
NSString * const kActionBillDeatilViewController = @"initBillDeatilViewController";
NSString * const kActionBillDeatilFutureViewController = @"initBillDeatilFutureViewController";
NSString * const kActionBillPaymentRecoedViewController = @"initBillPaymentRecordViewController";

NSString * const kTargetWorkOrder = @"WorkOrder";
NSString * const kActionOrderInputViewController = @"initOrderInputViewController";
NSString * const kActionOrderDetailController = @"initOrderDetailController";
NSString * const kActionMyServiceListViewController = @"initMyServiceListViewController";

NSString * const kTargetSettleApply = @"SettleApply";
NSString * const kActionSettleApplyController = @"initSettledApplyViewController";

NSString * const kTargetIntegratedServices = @"IntegratedServices";
NSString * const kActionIntegratedServicesListController = @"initIntegratedServicesListViewController";

NSString * const kTargetServiceEvaluation = @"ServiceEvaluation";
NSString * const kActionServiceEvaluationController = @"initServiceEvaluationViewController";

NSString * const kTargetSanyBusinessCircle = @"SanyBusinessCircle";
NSString * const kActionSanyBusinessCircleController = @"initSanyBusinessCircleController";

@implementation SEGUhomeMediator (SEGPropertyBase)

/**
 * 初始化访客通行界面
 * @author Joker
 * @param params  参数
 * @return UIViewController
 */
-(UIViewController*)seg_initVisitorAccessViewController:(NSDictionary*)params {
    return [self performTarget:kTargetVisitor action:kActionVisitorAccessViewController params:params shouldCacheTarget:NO];
}

/**
 * 初始化访客通行界面
 * @author Joker
 * @param params  参数
 * @return UIViewController
 */
-(UIViewController*)seg_initMonthCardCheckViewController:(NSDictionary*)params {
    return [self performTarget:kTargetMonthCard action:kActionMonthCardCheckViewController params:params shouldCacheTarget:NO];
}


/**
 * 优秀员工
 * @author Joker
 */
-(UIViewController *)seg_initExcellentWorkersViewController:(NSDictionary *)params {
    return [self performTarget:kTargetNewCommunity action:kActionExcellentWorkersViewController params:params shouldCacheTarget:NO];
}

/**
 * 住户好评
 * @author Joker
 */
-(UIViewController *)seg_initUhomeListViewController:(NSDictionary *)params {
    return [self performTarget:kTargetNewCommunity action:kActionUhomeListViewController params:params shouldCacheTarget:NO];
}

/**
 * 社区公告 | 物业通知
 * @author Joker
 */
-(UIViewController *)seg_initNewsListRootViewController:(NSDictionary *)params {
    return [self performTarget:kTargetNews action:kActionNewsListRootViewController params:params shouldCacheTarget:NO];
}

/**
 * 快递代收列表
 * @author Joker
 */
-(UIViewController *)seg_initExpressCollectionListViewController:(NSDictionary *)params {
    return [self performTarget:kTargetExpress action:kActionExpressCollectionListViewController params:params shouldCacheTarget:NO];
}

/**
 * 快递代收详情
 * @author Joker
 */
-(UIViewController *)seg_initExpressCollectionDetailViewController:(NSDictionary *)params {
    return [self performTarget:kTargetExpress action:kActionExpressCollectionDetailViewController params:params shouldCacheTarget:NO];
}

/**
 * 账单列表
 * @author Joker
 */
-(UIViewController *)seg_initBillListViewController:(NSDictionary *)params {
    return [self performTarget:kTargetBill action:kActionBillListViewController params:params shouldCacheTarget:NO];
}

/**
 * 账单详情
 * @author Joker
 */
-(UIViewController *)seg_initBillDeatilViewController:(NSDictionary *)params {
    return [self performTarget:kTargetBill action:kActionBillDeatilViewController params:params shouldCacheTarget:NO];
}

/**
 * 账单预缴
 * @author Joker
 */
-(UIViewController *)seg_initBillDeatilFutureViewController:(NSDictionary *)params {
    return [self performTarget:kTargetBill action:kActionBillDeatilFutureViewController params:params shouldCacheTarget:NO];
}

/**
 缴费记录
 
 @param params 参数
 @return VC
 */
- (UIViewController *)seg_initBillPaymentRecordViewController:(NSDictionary *)params {
    return [self performTarget:kTargetBill action:kActionBillPaymentRecoedViewController params:params shouldCacheTarget:NO];
}

/**
 * 报事报修
 * @author Joker
 */
-(UIViewController *)seg_initOrderInputViewController:(NSDictionary *)params {
    return [self performTarget:kTargetWorkOrder action:kActionOrderInputViewController params:params shouldCacheTarget:NO];
}

/**
 * 签名类
 * @author Sam
 */
-(UIViewController *)seg_initSEGSignViewController:(void(^)(UIImage*))imageBlock{
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    [params setValue:imageBlock forKey:@"completeBlock"];
    return [self performTarget:kTargetWorkOrder action:@"initSEGSignViewController" params:params shouldCacheTarget:NO];
}

/**
 * 工单详情
 * @author Joker
 */
-(UIViewController *)seg_initOrderDetailController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetWorkOrder action:kActionOrderDetailController params:params shouldCacheTarget:NO];
    return vc;
}

/**
 工单记录（原：我的服务）
 @return Joker
 */
- (UIViewController *)seg_initMyServiceListViewController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetWorkOrder action:kActionMyServiceListViewController params:params shouldCacheTarget:NO];
    return vc;
}

/**
 入驻申请(sany)

 @param params 参数
 @return vc
 */
- (UIViewController *)seg_initSettledApplyViewController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetSettleApply action:kActionSettleApplyController params:params shouldCacheTarget:NO];
    return vc;
}

/**
 综合服务(sany)
 
 @param params 参数
 @return vc
 */
- (UIViewController *)seg_initIntegratedServicesListViewController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetIntegratedServices action:kActionIntegratedServicesListController params:params shouldCacheTarget:NO];
    return vc;
}

/**
 服务评优(sany)
 
 @param params 参数
 @return vc
 */
- (UIViewController *)seg_initServiceEvaluationViewController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetServiceEvaluation action:kActionServiceEvaluationController params:params shouldCacheTarget:NO];
    return vc;
}

/**
 周边商家(sany)
 
 @param params 参数
 @return vc
 */
- (UIViewController *)seg_initSanyBusinessCircleViewController:(NSDictionary *)params {
    UIViewController *vc = [self performTarget:kTargetSanyBusinessCircle action:kActionSanyBusinessCircleController params:params shouldCacheTarget:NO];
    return vc;
}


@end
